﻿<UserControl x:Class="monitor_server_2_WPF.TrustedAddressListTabControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="472">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!--<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />-->
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <!--<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />-->
                <!--<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />-->
                <!--<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />-->
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Buttons.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <Style x:Key="TabItemStyle1" TargetType="{x:Type TabItem}">
                <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
                <Setter Property="IsTabStop" Value="False"/>
                <Setter Property="BorderThickness" Value="1"/>
                <Setter Property="Padding" Value="6,2"/>
                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                <Setter Property="VerticalContentAlignment" Value="Stretch"/>
                <Setter Property="MinWidth" Value="5"/>
                <Setter Property="MinHeight" Value="5"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type TabItem}">
                            <Label x:Name="root" FontSize="26.67">
                                <ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" RecognizesAccessKey="True"/>
                            </Label>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter Property="Foreground" TargetName="root">
                                        <Setter.Value>
                                            <!--<SolidColorBrush Color="{DynamicResource AccentColor}"/>-->
                                            <SolidColorBrush Color="DeepSkyBlue"/>
                                        </Setter.Value>
                                    </Setter>
                                </Trigger>
                                <Trigger Property="IsMouseOver" SourceName="root" Value="True">
                                    <Setter Property="Foreground" TargetName="root" Value="GreenYellow"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <TabControl ItemContainerStyle="{DynamicResource TabItemStyle1}" Margin="0,0,0,0">
            <TabItem x:Name="Item1" Header="TabItem" MouseDoubleClick="Item1_OnMouseDoubleClick">
                <Grid Background="#FFE5E5E5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="150"/>
                    </Grid.ColumnDefinitions>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" MinWidth="150"/>
                            <ColumnDefinition Width="1"/>
                            <ColumnDefinition Width="*" MinWidth="150"/>
                        </Grid.ColumnDefinitions>
                        <DataGrid x:Name="DataGobl" Grid.Column="0" Margin="0,0,0,0" HorizontalContentAlignment="Stretch"/>
                        <DataGrid x:Name="DataGip" Grid.Column="2" Margin="0,0,0,0"/>
                        <GridSplitter x:Name="GridSplitter1" ResizeDirection="Columns" HorizontalAlignment="Left,Center,Right" Margin="0,0,0,0" VerticalAlignment="Stretch" Grid.Column="1" Background="White"/>
                    </Grid>
                    <StackPanel x:Name="ControlsPanel" Grid.Column="1" Margin="0,0,0,0">
                        <Label x:Name="RegionLabel" Content="Label" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="White"/>
                        <TextBox x:Name="RegionBox" controls:TextboxHelper.ClearTextButton="True" Height="23" TextWrapping="Wrap" IsReadOnly="True" IsReadOnlyCaretVisible="False"/>
                        <Label x:Name="IpLabel" Content="Label" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="White"/>
                        <TextBox x:Name="IpBox" controls:TextboxHelper.ClearTextButton="True" Height="23" TextWrapping="Wrap"/>
                        <Button x:Name="AcceptButton" Content="Button" Margin="0,10" VerticalAlignment="Top" HorizontalAlignment="Center" Width="100" Height="30" Click="AcceptButton_OnClick"/>
                    </StackPanel>
                </Grid>
            </TabItem>
        </TabControl>

    </Grid>
</UserControl>
